﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace SOLID五大设计原则
{
    internal class Program
    {
        static void Main(string[] args)
        {// 使用
            var logger = new FileLogger();
            var repository = new SqlRepository<User>();
            var userService = new UserService(logger, repository);
            userService.RegisterUser(new User("张三"));
        }
    }
}
